package com.github.data_manage.dao

import com.github.data_manage.domain.po.Contrast
import org.springframework.data.jpa.repository.Query

interface ContrastDao : BaseDao<Contrast> {

    fun findByName(name: String): Contrast?

    @Query("select distinct name from Contrast")
    fun findAllContrastNames(): List<String>

    @Query("select id from Contrast")
    fun findAllContrastsIds(): List<Int>

}
